home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / 5-in-a-raw / Coherence.jar / Start.class (.txt) < prev    next >
Encoding:
Java Class File  |  2002-03-15  |  882 b   |  38 lines

  1. import javax.microedition.lcdui.Canvas;
  2. import javax.microedition.lcdui.Display;
  3. import javax.microedition.lcdui.Displayable;
  4. import javax.microedition.midlet.MIDlet;
  5.  
  6. public final class Start extends MIDlet {
  7.    protected static Display display;
  8.    protected static Canvas canvas;
  9.    protected static MIDlet midlet;
  10.  
  11.    public Start() {
  12.       midlet = this;
  13.       display = Display.getDisplay(this);
  14.  
  15.       try {
  16.          canvas = new Runko(this);
  17.       } catch (Exception var2) {
  18.       }
  19.  
  20.    }
  21.  
  22.    public void startApp() {
  23.       display.setCurrent(canvas);
  24.    }
  25.  
  26.    public void pauseApp() {
  27.    }
  28.  
  29.    public void destroyApp(boolean var1) {
  30.       display.setCurrent((Displayable)null);
  31.    }
  32.  
  33.    public void exit() {
  34.       this.destroyApp(false);
  35.       ((MIDlet)this).notifyDestroyed();
  36.    }
  37. }
  38.